<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
	<title>行程信息</title>

	<!-- Favicon -->
	<link rel="shortcut icon" type="image/x-icon" href="__INDEX__/img/favicon.png">

	<!-- Bootstrap CSS -->
	<link rel="stylesheet" href="__INDEX__/css/bootstrap.min.css">

	<!-- Fontawesome CSS -->
	<link rel="stylesheet" href="__INDEX__/plugins/fontawesome/css/fontawesome.min.css">
	<link rel="stylesheet" href="__INDEX__/plugins/fontawesome/css/all.min.css">

	<!-- calendar CSS -->
	<link rel="stylesheet" href="__INDEX__/plugins/simple-calendar/simple-calendar.css">

	<!-- Feathericon CSS -->
	<link rel="stylesheet" href="__INDEX__/css/feather.css">

	<!-- Main CSS -->
	<link rel="stylesheet" href="__INDEX__/css/style.css">
</head>
<body>
<!-- Main Wrapper -->
<div class="main-wrapper">
	<!-- Header -->
	{include file="Include/top"}
	<!-- /Header -->

	<!-- Sidebar -->
	{include file="Include/left"}
	<!-- /Sidebar -->

	<!-- Page Wrapper -->
	<div class="page-wrapper">
		<div class="content container-fluid">
			<div class="row">
				<div class="col-lg-12">
					<div class="card">
						<div class="card-header">
							<h5 class="card-title">行程信息查询导出</h5>
						</div>
						<div class="card-body">
							<form action="/index/Travelroute/form1" method="get" autocomplete="off">
								<div class="form-group row">
									<label class="col-form-label col-md-2">行程名称</label>
									<div class="col-md-10">
										<input type="text" name="name" class="form-control">
									</div>
								</div>
								<div class="text-right">
									<button type="submit" class="btn btn-primary">Submit</button>
								</div>
							</form>
						</div>

						<div class="card-body">
							<div class="table-responsive">
								<table class="table mb-0">
									<thead>
									<tr>
										<th>导游姓名</th>
										<th>导游手机</th>
										<th>行程团号</th>
										<th>行程名称</th>
										<th>游客姓名</th>
										<th>年龄</th>
										<th>性别</th>
										<th>电话</th>
										<th>家庭编号</th>
										<th>注册时间</th>
										<th class="text-right">操作</th>
									</tr>
									</thead>
									<tbody>
									{volist name="list" id="vv"}
									<tr>
										<td>{$vv.dyname}</td>
										<td>{$vv.dyiphone}</td>
										<td>{$vv.groupNum}</td>
										<td>{$vv.travelroute}</td>
										<td>{$vv.ykname}</td>
										<td>{$vv.age}</td>
										<td>{$vv.sex}</td>
										<td>{$vv.ykiphone}</td>
										<td>{$vv.home_num}</td>
										<td>{$vv.ykaddtime|date="Y-m-d H-i-s"}</td>
										<td class="text-right">
											<a href="/Index/User/edit.html?id={$vv.id}" class="btn btn-sm btn-white text-success mr-2"><i class="far fa-edit mr-1"></i> 修改</a>
											<a href="javascript:void(0);"  onclick="member_del(this,'{$vv.id}');"  class="btn btn-sm btn-white text-danger mr-2"><i class="far fa-trash-alt mr-1"></i>删除</a>
										</td>
									</tr>
									{/volist}
									</tbody>
								</table>
							</div>
							<div class="row" style="margin-left: 85%;height: 45px;width:100%;">
								<div class="btn btn-default col-xs-12 col-sm-6 col-md-8">

								</div>
							</div>

						</div>
					</div>
				</div>
			</div>

		</div>
	</div>

</div>
<!-- /Main Wrapper -->
<script>
	function member_del(obj, id){
		$.ajax({
			url:'del',
			type: 'get',
			data: {'id':id},
			dataType: 'json',
			success:function(res){
				if(res.code == 1){
					if(success){
						success(res);
					}else{
						console.log('success', res);
					}
				}else{
					if(fail){
						fail(res);
					}else{
						console.log('成功但响应出错', res)
					}
				}
			},

		})
	}
</script>
<!-- jQuery -->
<script src="__INDEX__/js/jquery-3.6.0.min.js"></script>

<!-- Bootstrap Core JS -->
<script src="__INDEX__/js/bootstrap.bundle.min.js"></script>

<!-- Slimscroll JS -->
<script src="__INDEX__/plugins/slimscroll/jquery.slimscroll.min.js"></script>

<!-- Custom JS -->
<script src="__INDEX__/js/script.js"></script>

</body>
</html>
